<template>
  <div class="w">
    <div class="top">
      <div class="one">
        <i id="ico" class="iconfont icon-xiangzuojiantou"  @click="$router.push('/employee')"></i>
        <span>员工管理</span>
        <p @click="$router.push('/employee/revise')">权限管理</p>
      </div>
    </div>
    <div class="con">
      <div class="detail">
        <div class="left">
          <div class="img">
            <img :src="data.pic" alt="">
          </div>
          <div class="tite">
            <p>
              <span>{{ data.lxName }}</span>
            </p>
            <p>
              {{data.sex ? '女':'男'}}&nbsp;
              {{ data.lxPhone }}
            </p>
          </div>
        </div>
        <div class="rig">
          <h1>{{ data.type }}</h1>
          <p>周分享量</p>
        </div>
      </div>
      <div class="view">
        <p>负责用户</p>
        <span>
          查看全部
          <i class="iconfont icon-xiangyoujiantou"></i>
        </span>
      </div>
      <div class="div">
        <div class="t1">
          <div>
            <div>持</div>
          <p>张贤</p>
          </div>
          <div>
            <span>2019/11/24</span>
            <span>销售:牛继红</span>
          </div>
        </div>
        <div class="t2">
          <p>当你要隐藏滚动条的时候，最好将overflow显示设置为auto或者scroll保证内容是可滚动的。</p>
          <p>上次跟进：</p>
        </div>
      </div>
    </div>
  </div>
  </template>

<script>
import { Detail } from '@/api/information'
export default {
  data () {
    return {
      value: '',
      id: '',
      data: ''
    }
  },
  methods: {
    async getData () {
      const res = {
        id: this.id
      }
      const data = await Detail(res)
      this.data = data.data
      console.log(this.data)
    }
  },
  mounted () {
    this.id = this.$route.query.id
    this.getData()
  }
}
</script>

  <style lang="less" scoped>
  .w{
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0px;
  bottom: 0px;
  background-color: #f7f7f7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  .top{
    width: 100%;
    height: 100px;
    background-color: #ffffff;
    >.one{
      width: 100%;
      height: 100px;
      box-sizing: border-box;
      padding: 0 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      >p{
        width: 115px;
        height: 57px;
        font-size: 20px;
        line-height: 57px;
        border-radius: 10px;
        text-align: center;
        color: #fff;
        background-color: #ff4c4c;
      }
    }
  }
  .con{
    width: 100%;
    flex-grow: 1;
    background-color: #f7f7f7;
    >.detail{
      width: 100%;
      height: 220px;
      box-sizing: border-box;
      padding: 50px 30px;
      display: flex;
      justify-content: space-between;
      .left{
        display: flex;
        .img{
          width: 120px;
          height: 120px;
          border-radius: 100%;
          background-color: aquamarine;
          margin-right: 20px;
          >img{
            width: 100%;
            height: 100%;
            border-radius: 100%;
          }
        }
        .tite{
          height: 120px;
          display: flex;
          flex-direction: column;
          justify-content: space-evenly;
          >p{
            font-size: 20px;
            color: #999;
            >span{
              font-size: 30px;
              color: #000;
            }
          }
        }
      }
      .rig{
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 120px;
        >h1{
          text-align: center;
        }
        >p{
          font-size: 30px;
        }
      }
    }
    >.view{
      width: 100%;
      height: 50px;
      box-sizing: border-box;
      padding: 0 35px;
      display: flex;
      justify-content: space-between;
      margin: 20px 0;
      >p{
        font-size: 30px;
        color: #000;
      }
      >span{
        font-size: 20px;
        color: #999;
      }
    }
    >.div{
      width: 680px;
      height: 185px;
      background-color: #fff;
      box-sizing: border-box;
      padding: 20px;
      border-radius: 10px;
      margin: 0 auto;
      margin-top: 15px;
      >.t1{
        width: 100%;
        height: 40px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        >div{
          >div{
            display: inline-block;
            width: 42px;
            height: 42px;
            line-height: 42px;
            text-align: center;
            border-radius: 10px;
            margin-right: 30px;
            background-color: #ff4c4c;
            color: #fff;
          }
          >p{
            display: inline-block;
            font-size: 30px;
          }
          >span{
            font-size: 18px;
            color: #999;
            margin-right: 20px;
          }
        }
      }
      .t2{
        width: 100%;
        height: 100px;
        text-overflow: -o-ellipsis-lastline;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        margin-top: 20px;
        font-size: 28px;
        line-height: 40px;
        >p{
          height: 40px;
          line-height: 40px;
        text-overflow: -o-ellipsis-lastline;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        font-size: 28px;
        }
      }
    }
  }
}
  </style>
